package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile    string `form:"type:varchar(30);not null;comment:手机号"`
	Password  string `form:"type:char(32);not null;comment:密码"`
	HeadImage string `form:"type:varchar(500);not null;comment:头像"`
	Name      string `form:"type:varchar(30);not null;comment:昵称"`
}

type Goods struct {
	gorm.Model
	GoodName string  `form:"type:varchar(30);not null;comment:商品名称"`
	Price    float64 `form:"type:decimal(10,2);not null;comment:价格"`
	Num      int64   `form:"type:int(11);not null;comment:数量"`
	UserId   int64   `form:"type:int(11);not null;comment:用户Id"`
}
